﻿namespace EduFormManager.Models.Repo
{
    class RepositoryFactory
    {
        private static RepositoryFactory _instance;
        private static ApplicationRepository _munitRepositoryInstance;

        private RepositoryFactory() { }

        public static RepositoryFactory Instance
        {
            get { return _instance ?? (_instance = new RepositoryFactory()); }
        }

        public IRepository Repository 
        {
            get { return _munitRepositoryInstance ?? (_munitRepositoryInstance = new ApplicationRepository()); }
        }
    }
}
